import request from "@/utils/request";
import { getParamsSuffix } from "@/utils/paramsUtils";

/**
 * 添加
 * @param params
 * @returns {Promise<any>}
 */
export async function add(params) {
    return request('/api/cdcerservice/v1/annualReportSummary/add', {
        method: 'POST',
        requestType: 'form',
        data: { ...params },
    });
}


/**
* 展示图片
* @param query
* @returns {Promise<any>}
*/
export async function show(query) {
    
    const params = getParamsSuffix(query);
    console.log(query);
    return request(`/api/cdcerservice/v1/annualReportSummary/showAllFile?${params}`);
}

/**
 * 分页
 * @param params
 * @returns {Promise<any>}
 */
export async function selList(params) {
    return request('/api/cdcerservice/v1/annualReportSummary/selList', {
        method: 'POST',
        requestType: 'form',
        data: { ...params },
    });
}

/**
* 详情
* @param query
* @returns {Promise<any>}
*/
export async function selById(query) {
    const params = getParamsSuffix(query);
    return request(`/api/cdcerservice/v1/annualReportSummary/selById?${params}`);
}



